package com.xyh.seckill.service;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.xyh.seckill.to.SecKillSkuRedisTo;

import java.util.List;

public interface SecKillService {
    void uploadSecKillSkuLatest3ays();

    List<SecKillSkuRedisTo> getCurrentSeckillSkus() throws BlockException;

    SecKillSkuRedisTo getSkuSeckillInfo(Long skuId);

    String kill(String killId, String key, Integer num);
}
